import { put } from '@/utils/request';

interface Response {}

/**
 * @description 用户注册
 *
 * @param username 用户名称
 * @param account 用户账号
 * @param password 用户密码
 * @param mobile_phone 用户
 * @param code 用户邮箱
 * @returns
 */
export default async function putRegister(username: string, account: string, password: string, mobile_phone: string, code: string) {
    const response = await put('/api/user/register', { username, account, password, mobile_phone, code });
    // ,header:{'Authorization':`Bearer ${localStorage.getItem("token")}`}
  return response;
}